Previous | Index | Next |

Output stream iterator

OutputStreamIterator api writes (using the writer function object) successive elements onto the output stream from which it was constructed. The specified String it is constructed with is called a delimiter string, which is written to the stream after every element is written It is not possible to get a value out of the output iterator. Its only use is as an output iterator in situations like
    while (!first.cmp(last)) {
	result.put(first.get());
	result.next();
	first.next();
    }


Previous | Index | Next |